package com.nerins.udp.server;

import java.io.IOException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MainApp {
	public static void main(String[] args) {

		// ApplicationContext context =
		// new ClassPathXmlApplicationContext("application-context.xml");

		UDPServer server;

//		ApplicationContext context = new ClassPathXmlApplicationContext(
//		"application-context.xml");
//
//		server = (UDPServer) context.getBean("UDPServer");
		
		try {

			//creo il server
			server = new UDPServer();
			
			//inizio ascolto
			server.start(-1);

		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}
}
